import { PageForm } from '../../interface/index'
export namespace Inquiry {
    /**
     *  活动模块-请求参数-数据结构定义
     */
    export namespace Params {
         //询价列表
        export interface Search extends PageForm {
            inqStatus?: string;
            condity?: string;
            prodClassify?: string;
            ingType?: string
            materialName?: string;
            inqUser ?: string
        }
        export interface comment extends PageForm {
            inqId : string | number
            pid ?: string | number
        }
        export interface Log extends PageForm { 
            inqId ?: string | number
        }
        export interface NewInqury {
            images: string
            condity: string
            inqDescs: string
            inqType: string
            materialName: string
            prodClassify: string
            qty: string
            reward: string
            jobNumber: string
        }
        export interface CommentAdd {
            inqId: number | string
            pid: number
            assess: string
            atype: number | string
            files: string
            jobNumber: string
        }
        export interface reply extends PageForm {
            jobNumber ?: string
            inquiryId : string
        }
    }
    //询价列表
    export interface List {
        count: number;
        data: Item[];
    }
    export interface Paramsquery {
        inqStatus: ''
        condity: ''
        prodClassify: ''
        ingType: ''
    }
    //新增询价
    export interface inquryNew {
        materialName:string
        prodClassify:string
        inqType:string
        condity:string
        qty:string
        images:string
        inqDescs:string
        reward:string
        jobNumber : string
    }
    export interface detailInqury {
        code : number
        data : Item
        msg : string
    }
    //询价-数据结构
    export interface Item {
        assCount: number
        acceptPriceId : string | number
        company: string
        condity: string
        createTime: string
        grabCount: number
        images: string
        imagesFull : string
        imagesList : string[]
        inqDescs: string
        inqId: number
        inqNo: string
        inqStatus: string
        inqType: string
        inqUser: string
        inqUserCode: string
        inqUserHead: string
        likeNum: number
        materialName: string
        prodClassify: string
        permissions:string[]
        qty: number
        quoteTime:string
        reminder: number
        reward: number
        viewNum: number
        compareTime:string
        showPrice: number
        showType: string
        timeData : string | number | null
        mySelf : boolean
        timeSeat : number | null
        expiredTime : number | null
        lastReplyVo : {
            expiredTime: string
        }
        respReplyVo : RespReplyVo
    }
    export interface RespReplyVo {
        acceptStatus: string
        aprice: number
        bprice: number
        cprice: number
        createTime: string
        expiredTime: number
        inquiryId: number
        priceType: string
        prodCondity: string
        quoteTime: string
        replyId: number
        replyRemark: string
        replyStatus: string
        replyType: string
        replyUser: string
        replyUserHead: string
        respDays: number
        salMaterialName: string
        salePrice: number
        showPrice: number
        showType: string
        sprice: number
        ssprice: number
        sssprice: number
    }
    //评论列表
    export interface ListComment {
        count: number;
        data: Comment[];
    }
    export interface Comment {
        assUser: string
        assUserCode: string
        assess: string
        assessId: number
        atype: string
        createTime: string
        files: string
        inqId: number | string
        pid: number
        replyCount: number
        replyUser: string
        myself : boolean
        replyMore : boolean
        page: Params.comment
        comFiles : string[]
        children : {
            params : Comment[]
            total : number
            showreply : boolean
        }
    }
    //报价列表
    export interface listReply {
        count: number;
        data: Reply[];
    }
    export interface Reply {
        acceptStatus: string
        aprice: number
        bprice: number
        cprice: number
        createTime: string
        expiredTime: number
        inquiryId: number
        priceType: string
        prodCondity: number
        quoteTime: string
        replyId: number
        replyRemark: string
        replyStatus: string
        replyType: string
        replyUser: string
        replyUserHead: string
        respDays: number
        salMaterialName: string
        salePrice: number
        showPrice: number
        showType: "c"
        sprice: number
        ssprice: number
        sssprice: number
    }
    //查看采购价
    export interface respReply {
        aprice:number
        bprice:number
        cprice:number
        sprice:number
        ssprice:number
        sssprice:number
        showType:string
        salePrice:number
        replyId:number
        replyRemark:string
    }
    //操作日志
    export interface LogInquiry {
        count: number;
        data: InquiryItem[];
    }
    export interface InquiryItem {
        createTime: string
        delFlag: string
        inqId: number
        logId: number
        operDesc: string
        operUser: string
        updateTime: string
    }
}
